import Footer from '../components/Footer/index.vue'
const routes = [
  {
    path: '/',
    name: 'footerMain',
    redirect: '/home',
    component: Footer,
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          title: '主页'
        },
        component: () => import('../views/NcovHome.vue')
      },
      {
        path: '/mine',
        name: 'mine',
        meta: {
          title: '我的'
        },
        component: () => import('../views/NcovMine.vue')
      },
      {
        path: '/ncov-travel',
        name: 'ncov-travel',
        meta: {
          title: '出行'
        },
        component: () => import('../views/NcovTravel.vue')
      },
      {
        path: '/ncov-avoid',
        mame: 'ncov-avoid',
        meta: {
          title: '防疫'
        },
        component: () => import('../views/NcovAvoid.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录'
    },
    component: () => import('../views/NcovLogin.vue')
  },
  {
    path: '/register',
    name: 'register',
    meta: {
      title: '注册'
    },
    component: () => import('../views/NcovRegister.vue')
  },
  {
    name: '404',
    path: '/404',
    component: () => import('../error-page/error.vue'),
    meta: {
      title: '404'
    }
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  },
  {
    path: '/university',
    name: 'university',
    meta: {
      title: '大学'
    },
    component: () => import('../components/Register/university/university.vue')
  },
  {
    path: '/calequestions',
    name: 'calequestions',
    meta: {
      title: '答题'
    },
    component: () => import('../components/Avoid/CaleQuestions.vue')
  },
  {
    path: '/cale',
    name: 'cale',
    meta: {
      title: '得分'
    },
    component: () => import('../components/Avoid/Cale.vue')
  }
]

export default routes
